/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mattespill.gui;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author Erik
 */
public class GUIHoved extends JFrame {

    private JPanel panelBgImg;
    Image bg                = new ImageIcon("src/mattespill/gui/images/bakgrunn.png").getImage();

    public GUIHoved (){
      

        panelBgImg = new JPanel() {
            public void paintComponent(Graphics g) {
                //g.drawImage(bl.loadImage("png", "bakgrunn"),0,0,null);
                g.drawImage(bg,0,0,null);
            }
        };
        setMinimumSize(new Dimension(794,610));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        panelBgImg.add(new GUILoggInn());
        add(panelBgImg);
        setLayout(new GridLayout(1,1));
        
        
    } 
   
}
